package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class CardAuthInfoResponse {
    @ApiModelProperty(value = "权限列表", dataType = "CardAuthInfoResponse.Auth")
    private List<Auth> auths;

    @ApiModel("CardAuthInfoResponse.Auth")
    @Data
    @Builder
    public static class Auth {
        @ApiModelProperty("权限ID")
        private Integer authId;
        //        @ApiModelProperty("权限ID")
//        private String authIcon;
        @ApiModelProperty("权限名称")
        private String authName;
        @ApiModelProperty("0 关闭 1 开启")
        private Integer open;
        @ApiModelProperty("子权限")
        private List<Auth> authList;
    }
}
